package com.example.fridatest;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {


    private Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btn=(Button)findViewById(R.id.btn_main);
        btn.setOnClickListener(this);

        Toast.makeText(MainActivity.this,String.valueOf(Utils.getCalc(100,200)),Toast.LENGTH_LONG).show();;

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btn_main:
                Toast.makeText(MainActivity.this,String.valueOf(Utils.getCalc(10,20)),Toast.LENGTH_LONG).show();;
        }
    }
}